import request from '@/utils/request'

// 查询物资出库记录列表
export function listOutrecord(query) {
  return request({
    url: '/goods/outrecord/list',
    method: 'get',
    params: query
  })
}

// 查询物资出库记录详细
export function getOutrecord(id) {
  return request({
    url: '/goods/outrecord/' + id,
    method: 'get'
  })
}

// 新增物资出库记录
export function addOutrecord(data) {
  return request({
    url: '/goods/outrecord',
    method: 'post',
    data: data
  })
}

// 修改物资出库记录
export function updateOutrecord(data) {
  return request({
    url: '/goods/outrecord',
    method: 'put',
    data: data
  })
}

// 删除物资出库记录
export function delOutrecord(id) {
  return request({
    url: '/goods/outrecord/' + id,
    method: 'delete'
  })
}
